package com.lagou.service.email.service.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("lagou-service-user")
@RequestMapping("/user")
public interface UserServiceFeignClient {

    /**
     * 是否已注册，根据邮箱判断,true代表已经注册过，false代表尚未注册
     */
    @GetMapping("/isRegistered/{email}")
    Boolean isRegistered(@PathVariable String email);
}
